package edu.neu.javaweb.service;

import edu.neu.javaweb.bean.Employee;
import edu.neu.javaweb.dao.EmployeeDao;

import java.util.List;

public class EmployeeService {
    public List<Employee> findAll() {
        return new EmployeeDao().findAll();
    }

    public List<Employee> findById(int id) {
        return new EmployeeDao().findById(id);
    }


    public void add(Employee emp) {
        new EmployeeDao().add(emp);
    }

    public void deleteById(int id) {
        new EmployeeDao().deleteById(id);
    }

    public void update(Employee emp) {
        new EmployeeDao().update(emp);
    }
}
